home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Die Speccy' 97
/
Die Speccy' 97.iso
/
amiga_system
/
the_aminet
/
util
/
libs
/
queue.lzh
/
queue
/
queue.h
< prev
next >
Wrap
C/C++ Source or Header
|
1995-10-12
|
794b
|
37 lines
/*
queue.h --- queue library definitions.
(c) Copyright 1995 SHW Wabnitz
Written by Bernhard Fastenrath (fasten@shw.com)
This file may be distributed under the terms
of the GNU General Public License.
*/
#ifndef QUEUE_H
#define QUEUE_H
typedef APTR QHandle;
typedef struct {
struct MinNode qm_MinNode;
USHORT qm_Status;
USHORT qm_Refs;
ULONG qm_Replies;
QHandle qm_Owner;
} QMessage;
/* modes for QOpen (name, mode) */
#define QMODE_LISTEN 0x1
#define QMODE_SEND 0x2
QHandle QOpen (STRPTR name, ULONG mode, ULONG sigbit);
ULONG QClose (QHandle qh);
void QAddMsg (QHandle qh, QMessage *msg);
void QRemMsg (QHandle qh, QMessage *msg);
QMessage *QGetMsg (QHandle qh);
ULONG QReplyMsg (QHandle qh);
ULONG QFlush (QHandle qh);
#endif /* QUEUE_H */